.class public Lcom/instagram/android/a/b/z;
.super Ljava/lang/Object;
.source "SharingAccountsRowViewBinder.java"


# direct methods
.method public static a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 28
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_sharing_settings:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 29
    new-instance v2, Lcom/instagram/android/a/b/af;

    invoke-direct {v2}, Lcom/instagram/android/a/b/af;-><init>()V

    .line 30
    sget v0, Lcom/facebook/aw;->account_name:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/a/b/af;->a:Landroid/widget/TextView;

    .line 31
    sget v0, Lcom/facebook/aw;->row_edit_sharing_settings_checkbox:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, v2, Lcom/instagram/android/a/b/af;->b:Landroid/widget/CheckBox;

    .line 32
    sget v0, Lcom/facebook/aw;->row_simple_text_disclosure:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v2, Lcom/instagram/android/a/b/af;->c:Landroid/widget/ImageView;

    .line 33
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 34
    return-object v1
.end method

.method public static a(Landroid/view/View;Lcom/instagram/android/a/b/af;Lcom/instagram/android/widget/as;Lcom/instagram/e/b/c;Lcom/facebook/a/e;)V
    .locals 6
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 39
    iget-object v0, p1, Lcom/instagram/android/a/b/af;->a:Landroid/widget/TextView;

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p2, v1}, Lcom/instagram/android/widget/as;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 41
    iget-object v0, p1, Lcom/instagram/android/a/b/af;->b:Landroid/widget/CheckBox;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 42
    iget-object v0, p1, Lcom/instagram/android/a/b/af;->b:Landroid/widget/CheckBox;

    invoke-virtual {p2}, Lcom/instagram/android/widget/as;->a()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 44
    new-instance v0, Lcom/instagram/android/a/b/aa;

    move-object v1, p1

    move-object v2, p0

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/a/b/aa;-><init>(Lcom/instagram/android/a/b/af;Landroid/view/View;Lcom/instagram/android/widget/as;Lcom/instagram/e/b/c;Lcom/facebook/a/e;)V

    .line 57
    invoke-virtual {p0, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 58
    iget-object v1, p1, Lcom/instagram/android/a/b/af;->b:Landroid/widget/CheckBox;

    invoke-virtual {v1, v0}, Landroid/widget/CheckBox;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 59
    iget-object v0, p1, Lcom/instagram/android/a/b/af;->b:Landroid/widget/CheckBox;

    new-instance v1, Lcom/instagram/android/a/b/ab;

    invoke-direct {v1}, Lcom/instagram/android/a/b/ab;-><init>()V

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 67
    sget-object v0, Lcom/instagram/android/widget/as;->a:Lcom/instagram/android/widget/as;

    if-ne p2, v0, :cond_0

    invoke-virtual {p2}, Lcom/instagram/android/widget/as;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 68
    iget-object v0, p1, Lcom/instagram/android/a/b/af;->c:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 69
    new-instance v0, Lcom/instagram/android/a/b/ac;

    invoke-direct {v0, p3}, Lcom/instagram/android/a/b/ac;-><init>(Lcom/instagram/e/b/c;)V

    invoke-virtual {p0, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 81
    :goto_0
    return-void

    .line 78
    :cond_0
    iget-object v0, p1, Lcom/instagram/android/a/b/af;->c:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method static synthetic a(Landroid/view/View;Lcom/instagram/android/a/b/af;Lcom/instagram/android/widget/as;Lcom/instagram/e/b/c;Lcom/facebook/a/e;Z)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 25
    invoke-static/range {p0 .. p5}, Lcom/instagram/android/a/b/z;->b(Landroid/view/View;Lcom/instagram/android/a/b/af;Lcom/instagram/android/widget/as;Lcom/instagram/e/b/c;Lcom/facebook/a/e;Z)V

    return-void
.end method

.method private static b(Landroid/view/View;Lcom/instagram/android/a/b/af;Lcom/instagram/android/widget/as;Lcom/instagram/e/b/c;Lcom/facebook/a/e;Z)V
    .locals 8
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 86
    if-eqz p5, :cond_0

    .line 87
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->unlink_your_account:I

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {p2, v4}, Lcom/instagram/android/widget/as;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Lcom/facebook/c/i/b;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Ljava/lang/String;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->cancel:I

    new-instance v2, Lcom/instagram/android/a/b/ae;

    invoke-direct {v2}, Lcom/instagram/android/a/b/ae;-><init>()V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v6

    sget v7, Lcom/facebook/ba;->unlink:I

    new-instance v0, Lcom/instagram/android/a/b/ad;

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/a/b/ad;-><init>(Landroid/view/View;Lcom/instagram/android/a/b/af;Lcom/instagram/android/widget/as;Lcom/instagram/e/b/c;Lcom/facebook/a/e;)V

    invoke-virtual {v6, v7, v0}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 108
    :goto_0
    return-void

    .line 105
    :cond_0
    invoke-virtual {p2}, Lcom/instagram/android/widget/as;->b()V

    .line 106
    invoke-static {p0, p1, p2, p3, p4}, Lcom/instagram/android/a/b/z;->a(Landroid/view/View;Lcom/instagram/android/a/b/af;Lcom/instagram/android/widget/as;Lcom/instagram/e/b/c;Lcom/facebook/a/e;)V

    goto :goto_0
.end method
